<%@ page language="java" pageEncoding="UTF-8"%>
<%
	String ctx = request.getContextPath();
    String editorTextArea = (String)request.getAttribute("editorTextArea");
%>
<link rel="stylesheet" href="<%=ctx%>/pub/kindeditor/themes/default/default.css" />
<link rel="stylesheet" href="<%=ctx%>/pub/kindeditor/plugins/code/prettify.css" />
<script charset="utf-8" src="<%=ctx%>/pub/kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="<%=ctx%>/pub/kindeditor/lang/zh_CN.js"></script>
<script charset="utf-8" src="<%=ctx%>/pub/kindeditor/plugins/code/prettify.js"></script>
<script>
	var kindEditor1;
	KindEditor.ready(function(K) {
		kindEditor1 = K.create('#<%=editorTextArea%>', {
			cssPath : '<%=ctx%>/pub/kindeditor/plugins/code/prettify.css',
			uploadJson : '<%=ctx%>/pub/kindeditor/jsp/upload_json.jsp',
			fileManagerJson : '<%=ctx%>/pub/kindeditor/jsp/file_manager_json.jsp',
			allowFileManager : true,
			afterCreate : function() {

			}
		});
		prettyPrint();
	});
</script>